home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 10816 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.6 KB

  1. Path: midland.co.nz!usenet
  2. From: jsev@midland.co.nz (John Severinsen)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: AmigaOS 4.x features
  5. Date: 2 Apr 1996 09:44:27 GMT
  6. Organization: Midland Internet Limited, Network Services
  7. Message-ID: <3139.6666T726T2158@midland.co.nz>
  8. References: <4j7ein$a6v@B1FF.mindspring.com> <4jc7g1$ipq@news.rhrz.uni-bonn.de>
  9.     <4jfm8i$b5n@B1FF.mindspring.com> <4jgc6q$a61@reuter.cse.ogi.edu> <4jkg5j$dva@B1FF.mindspring.com>
  10. NNTP-Posting-Host: jsev.midland.co.nz
  11. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  12.  
  13. On 31-Mar-96 11:29:55 (Msg ID: <4jkg5j$dva@B1FF.mindspring.com>), Charlie
  14. Moody wrote:
  15. --
  16.  
  17. >: >: :  - adoption of *nix pattern-matching;  it stands head, shoulders, and
  18. >: >: :  ankles above the original Amiga 'system' in power, simplicity, and
  19. >: >: :  flexibility.
  20.  
  21. >:      I'll grant that * is easier than #?, but the Amiga pattern matching
  22. >: is more powerful than traditional UNIX globbing.  As was pointed out
  23. >: earlier, you can always enable a UNIX-ish * by using a utility like
  24. >: wildstar.
  25.  
  26. >It may be *as* powerful, but not moreso (and what the heck is 'UNIX
  27. >globbing'?), and certainly not as well thought out.  And that's the point
  28. >about enabling the '*':  it's easy, and not nearly as useful as it would
  29. >be in context.
  30.  
  31. What is the problem with using "#?" instead of "*" ????   It's only an extra
  32. character after all!  Besides, the "#" operator can be used with other
  33. characters as well (e.g. ...#a...) which is certainly better thought out than
  34. other OS's.
  35.  
  36. >That's not "more flexible";  it's not "more powerful";  and it sure as
  37. >h*ll ain't any easier.  Isn't it basic common sense to avoid re-inventing
  38. >the wheel *whenever* possible?
  39.  
  40.  
  41. >: For example, "dir sys:(a|b|c|e)#?".
  42.  
  43. >               dir sys:[a-e]*
  44.  
  45. He was showing you an alternative for pre2.0 OS's.  dir  SYS:[a-e]#?  does the
  46. same under AmigaDos.  This is no more cumbersome nor less powerful than the
  47. UNIX system.
  48.  
  49. >; The main problem,
  50. >: if you want to call it a problem, is that it's different.  It also can be a
  51. >: little more awkward to use for certain patterns, but it always can get the
  52. >: job done.
  53.  
  54. >The fact that the kludge can be worked around does nothing to redeem the
  55. >kludge.  It's still bad design with no significant benefit from making
  56. >the sacrifices, and it should be thrown overboard at the first opportunity.
  57.  
  58. What kludge is this???   The Amiga has always used the "#?" operator for
  59. wildcards.  It does the same thing as an "*" in UNIX.
  60.  
  61.  
  62.  
  63. >: I'd certainly take the functionality of the # operator any day
  64. >: over the UNIX * operator (provided I've got a match-any-character operator
  65. >: to go with it.)
  66.  
  67. >You'd gladly throw away the match-any-character option, provided you've
  68. >got a match-any-character option to replace it???
  69.  
  70. From my (admittedly rather limited) experience with UNIX pattern matching, the
  71. AmigaDos system is more powerful (I suggest you read your manuals).  You have
  72. the following wildcards in AmigaDOS:
  73.  
  74. #    - Match any number the following character
  75. ?    - Match any single character
  76. ()   - Group things together
  77. |    - Like a logical OR
  78. []   - Character ranging
  79. ~    - Like a logical NOT
  80. %    - Match the NULL string
  81.  
  82. I think that's all but with these I have never come across anything that can't
  83. be specifically matched.
  84.  
  85.  
  86.  
  87.  
  88.  
  89. --
  90.     /// *           |One Ring to rule them all, One Ring to find them
  91.  __/// **           |One Ring to bring them all and in the darkness bind them
  92.  \XX/ * *miga       |In the land of Mordor where Shadows lie
  93.                     |
  94.  John Severinsen    |- J.R.R. Tolkien
  95.  jsev@midland.co.nz |
  96. <tsb>Thor 2.22, 02-Apr-96 11:32:58
  97.  
  98. When the cat's away, there's less hair on the furniture
  99.  
  100.